-- GENERATED SPELL FOR [Dreadsaber] --


function spell0_28001(pUnit, Event) --@Charge,n/a--
pUnit:FullCastSpellOnTarget(61685,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28001', 4000, 1)
end

function spell1_28001(pUnit, Event) --@Claw,n/a--
pUnit:FullCastSpellOnTarget(24187,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28001', 599, 1)
end

function spell2_28001(pUnit, Event) --@Claw,n/a--
pUnit:FullCastSpellOnTarget(52471,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28001', 535, 1)
end

function spell3_28001(pUnit, Event) --@Cower,n/a--
pUnit:FullCastSpellOnTarget(27048,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28001', 0, 1)
end

function spell4_28001(pUnit, Event) --@Dash,Self--
pUnit:FullCastSpellOnTarget(61684,pUnit)
pUnit:RegisterEvent('Sorts_28001', 16000, 1)
end

function spell5_28001(pUnit, Event) --@Growl,n/a--
pUnit:FullCastSpellOnTarget(27047,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28001', 0, 1)
end

function spell6_28001(pUnit, Event) --@Prowl,Self--
pUnit:FullCastSpellOnTarget(24453,pUnit)
pUnit:RegisterEvent('Sorts_28001', 0, 1)
end

function spell7_28001(pUnit, Event) --@Rake,n/a--
pUnit:FullCastSpellOnTarget(59885,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28001', 9000, 1)
end

function Sorts_28001(pUnit, Event)
local choix_sorts_28001 = math.random(0, 7)
if choix_sorts_28001 == 0 then
pUnit:RegisterEvent('spell0_28001', 1, 1)
end
if choix_sorts_28001 == 1 then
pUnit:RegisterEvent('spell1_28001', 1, 1)
end
if choix_sorts_28001 == 2 then
pUnit:RegisterEvent('spell2_28001', 1, 1)
end
if choix_sorts_28001 == 3 then
pUnit:RegisterEvent('spell3_28001', 1, 1)
end
if choix_sorts_28001 == 4 then
pUnit:RegisterEvent('spell4_28001', 1, 1)
end
if choix_sorts_28001 == 5 then
pUnit:RegisterEvent('spell5_28001', 1, 1)
end
if choix_sorts_28001 == 6 then
pUnit:RegisterEvent('spell6_28001', 1, 1)
end
if choix_sorts_28001 == 7 then
pUnit:RegisterEvent('spell7_28001', 1, 1)
end
end

function mob28001_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_28001', math.random(1500, 3000), 1)
end

function mob28001_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28001_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28001_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(28001, 1, 'mob28001_Action')
RegisterUnitEvent(28001, 2, 'mob28001_Leave')
RegisterUnitEvent(28001, 3, 'mob28001_Kill')
RegisterUnitEvent(28001, 4, 'mob28001_Die')
